package org.bf.sms.exception;

import org.apache.log4j.Logger;

/**
 * the message used for response to user
 * 
 * @author LiuChang 2010-12-15
 * @version 1.0
 * @since 1.0
 */
public class SMSException
		extends Exception
{
	/** code */
	private static final long serialVersionUID = -2153973645368476475L;

	/** log4j */
	private static final Logger logger = Logger.getLogger(SMSException.class);

	/** error code */
	private String code;

	/** exception message */
	private String message;

	/**
	 * constructor
	 */
	public SMSException()
	{
		super();
	}

	/**
	 * constructor
	 */
	public SMSException(String message)
	{
		this.message = message;
	}

	/**
	 * @return the code
	 */
	public String getCode()
	{
		return code;
	}

	/**
	 * @param code
	 *            the code to set
	 */
	public void setCode(String code)
	{
		this.code = code;
	}

	/**
	 * @return the message
	 */
	public String getMessage()
	{
		return this.message;
	}

	/**
	 * @param message
	 *            the message to set
	 */
	public void setMessage(String message)
	{
		this.message = message;
	}

}
